package gz.metro.datasync.entity.form;

import org.apache.http.util.Args;
import org.springframework.beans.BeanUtils;

public abstract class FormBase  {
    public FormBase() {
    }

    public FormBase copyFrom(Object model) {
        Args.notNull(model,"must");
        BeanUtils.copyProperties(model, this);
        return this;
    }

    public FormBase copyTo(Object model) {
        Args.notNull(model,"must");
        BeanUtils.copyProperties(this, model);
        return this;
    }


}
